package com.addplus.townmall.server.api.mapper.town;

import com.addplus.townmall.server.api.model.town.SearchHotShop;
import com.addplus.townmall.server.api.utils.BaseAddMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 商城热门搜索表 Mapper 接口
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
public interface SearchHotShopMapper extends BaseAddMapper<SearchHotShop> {
    @Select("select IFNULL(max(sort)+1,1) as sort from search_hot_shop")
    Integer selectMaxSort();
}
